package com.peace.hospital.mapper.drugstorage;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.peace.hospital.entity.drugstorage.Pharmacy;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


/**
 * <p>
 * 药房 Mapper 接口
 * </p>
 *
 * @author xie
 * @since 2019-11-12
 */
@Mapper
public interface PharmacyMapper extends BaseMapper<Pharmacy> {

//查询药房信息
    @Select("select phaname from drugstorage.pharmacy where phaid=#{phaid}")
    public Pharmacy findPh(int phaid);

}
